<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板</title>
</head>
<script type="text/javascript" src="../js/vue.js"></script>
<body>
<div id="root">
    <h2>欢迎{{name}}加入学习</h2>
</div>
</body>
<script type="text/javascript">
    Vue.config.productionTip=false //阻止vue在启动时生成生产提示

    new Vue({
        el:'#root',
        data:{
            name:'xiaowang'
        }
    })
</script>
</html>